package demo.jdk.features.Base;

import java.util.function.Function;
import java.util.stream.Stream;

/**
 * @author Ranchoz  2018/9/9 17:32
 **/

public class Artist {

	private String name;
	private String nationality;

	public Artist(String name) {
		this.name = name;
	}

	public Artist(String name, String s) {
		this.name = name;
		this.nationality = s;
		System.out.println("second parameter: " + s);
	}

	public String getName() {
		return this.name;
	}

	public String getNationality() {
		return this.nationality;
	}

	public  Stream<Artist> getMembers() {
		return Stream.of(new Artist[] {new Artist("1")});
	}
}
